
import Home from './components/Home.vue'
import News from './components/News.vue'
import Detail from './components/Detail.vue'
import Login from './components/Login.vue'
import Register from './components/Register.vue'
export default{
    routes:[
        {
            path:'/home',
            component:Home,
            children: [
                { path: '/login', component: Login },
                { path: '/register', component: Register },
            ]
        },
        {
            path:'/news',
            component:News,
            children: [
                { path: '/detail', component: Detail },
            ]
        },
        {path:'*', redirect:'/home'},
    ]
}
